package com.lap.context.starter.autoconfigure.properties;

import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import jakarta.annotation.PostConstruct;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
@ConfigurationProperties(prefix = "header")
public class ContextProperties {

  private List<Prop> parameters;

  @PostConstruct
  public void init() {
    log.info("Initializer context properties");
  }

  @Data
  public static class Prop {

    private String key;

    private boolean encode;
  }
}
